{{>header}}
<header>
    <div class="nav">
        <div class="logo">
            <h2><a class="bk" href="/">notesus</a></h2>
        </div>
        <div class="menu">
            <a class="m" href="/input">Input</a>
            <a class="m" href="/logout">Logout</a>
        </div>
    </div>
</header>

<main>
    <div id="content">
        <div class="kiri">
            
            <div class="notes">
                <form action="/notes" method="post">
                    <input type="hidden" name="id" value="{{notes._id}}">
                    <label for="judul">Judul :</label>
                    <input type="text" class="input" name="judul" id="judul" value="{{notes.judul}}">
                    <label for="isi">isi :</label>
                    <textarea name="isi" class="input" id="isi" cols="40" rows="10">{{notes.isi}}</textarea>
                    <input type="submit" value="Simpan"> <a class="batal" href="/">batal</a>
                </form>
            </div>
            
            <div class="notes_list">
                {{#each notes}}
                    <h4>{{ judul }}</h4>
                    {{ isi }}
                {{/each}}
            </div>
        </div>
        <div class="kanan">

        </div>
    </div>
</main>
{{>footer}}